{#
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

{% extends "firefox/features/base-article.html" %}

{% block page_desc %}{{ ftl('features-translate-firefox-translations-is-a-built-in-v2') }}{% endblock %}

{% block article_title_short %}{{ ftl('features-translate-translate-the-web') }}{% endblock %}
{% block article_title %}{{ ftl('features-translate-translate-a-webpage-with-firefox') }}{% endblock %}

{% block article_content %}
<p>{{ ftl('features-translate-one-of-the-best-things-about') }}</p>
<p>{{ ftl('features-translate-while-other-browsers-rely-on-v2') }}</p>

<h2>{{ ftl('features-translate-when-you-translate-a-webpage') }}</h2>
<p>{{ ftl('features-translate-when-your-translations-are') }}</p>

<h2>{{ ftl('features-translate-what-languages-are-currently') }}</h2>
<p>{{ ftl('features-translate-the-languages-below-are-what-v2') }}</p>

<ul class="c-lang-list mzp-u-list-styled">
{% if LANG.startswith('en-') %}
  <li>Arabic</li>
  <li>Bulgarian</li>
  <li>Catalan</li>
  <li>Chinese (Simplified)</li>
  <li>Croatian</li>
  <li>Czech</li>
  <li>Danish</li>
  <li>Dutch</li>
  <li>English</li>
  <li>Estonian</li>
  <li>Finnish</li>
  <li>French</li>
  <li>German</li>
  <li>Greek</li>
  <li>Hungarian</li>
  <li>Indonesian</li>
  <li>Italian</li>
  <li>Japanese</li>
  <li>Korean</li>
  <li>Latvian</li>
  <li>Lithuanian</li>
  <li>Polish</li>
  <li>Portuguese</li>
  <li>Romanian</li>
  <li>Russian</li>
  <li>Serbian</li>
  <li>Slovak</li>
  <li>Slovenian</li>
  <li>Spanish</li>
  <li>Swedish</li>
  <li>Turkish</li>
  <li>Ukrainian</li>
  <li>Vietnamese</li>
{% else %}
  {% for lang in context_test -%}
    {% set name = context_test[lang] %}
    {% set par = name.find(' (') %}
    {% if par > 0 %}
      <li>{{ name[0:par] }}</li>
    {% else %}
      <li>{{ name }}</li>
    {% endif %}
  {% endfor %}
{% endif %}
</ul>

<p>{{ ftl('features-translate-and-more-languages-are-in') }}</p>

<h2>{{ ftl('features-translate-firefox-speaks-your-language') }}</h2>
<p>{{ ftl('features-translate-the-firefox-translations-feature-v2', download='href="%s" data-cta-text="Get started in your preferred language"'|safe|format("https://www.firefox.com/?redirect_source=mozilla-org")) }}</p>
{% endblock %}
